<layout name="layout" />
<div class="nav">
    <ul class="cc">
        <li class="current"><a href="{:U('User/Cai/index')}">菜品列表</a></li>
        <li><a href="{:U('User/Cai/add')}">添加菜品</a></li>
    </ul>
</div>
<div class="table_list">
    <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableClass">
        <thead>
            <tr>
                <td width="12%" align="center">菜品ID</td>
                <td  align="center">菜品名称</td>
                <td  align="center">价格</td>
                <td  align="center">库存</td>
                <td  align="center">状态</td>
                <td width="35%" align="center">管理操作</td>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo" key="k">
            <tr>
                <td align="center">{$vo.cai_id}</td>
                <td align="center"> 
                    {$vo.cai_name}
                </td>
                 <td align="center"> 
                    {$vo.cai_price|format_price}
                </td>
                 <td align="center"> 
                    {$vo.cai_num}
                </td>
                <td align="center"> 
                    <if condition="$vo['status'] == 1">
                        显示
                        <else/>
                        不显示
                    </if>
                </td>
                <td align="center">
                    <a href="{:U('User/Cai/edit',array('id'=>$vo['cai_id']))}">
                        <font color=blue>编辑</font>
                    </a>
                     <a href="{:U('User/Cai/foreverdelete',array('cai_id'=>$vo['cai_id']))}">
                        <font color=blue>删除</font>
                    </a>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="p10">
        <div class="pages">{$Page}</div>
    </div>
</div>